﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Menu.ascx.cs" Inherits="Controls_Menu" %>
<div id="menupanel">
    <asp:Repeater ID="repMenu" runat="server" OnItemDataBound="repMenu_ItemDataBound">
        <ItemTemplate>
            <div class='sidebar-slide <%# Eval("Id") %>' id='<%# Eval("Id") %>'>
                <div class="title">
                    <div>
                        <div>
                            <h2>
                                <%# Eval("MenuName") %></h2>
                        </div>
                    </div>
                </div>
                <div class="sidebar-content">
                    <ul class="sf-menu sf-vertical">
                        <asp:Repeater ID="repMenu1" runat="server" OnItemDataBound="repMenu1_ItemDataBound">
                            <ItemTemplate>
                                <li class="sfHover">
                                    <a href='<%# Eval("Url") %>' title='<%# Eval("MenuName") %>'>
                                        <span><%# Eval("MenuName") %></span>
                                        <span style='width:5px;<%# Show(Eval("ID").ToString()) %>'>»</span>
                                    </a>
                                    <asp:Repeater ID="repSub" runat="server">
                                        <HeaderTemplate>
                                            <ul>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <li><a href='<%# Eval("Url") %>' title='<%# Eval("MenuName") %>'>
                                                <%# Eval("MenuName") %>
                                                <p></p> </a></li>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </ul>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        $(".sf-menu li").hover(
            function() { $(this).addClass("iefix"); },
            function() { $(this).removeClass("iefix"); }
        );
    });
</script>

